package com.nwpu.am.pojo.dto;

import com.nwpu.am.annotation.Status;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.Map;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("管理员采购订单提交申请传输对象")
public class PurchaseItemDTO {
    @NotEmpty
    private String userName;
    @NotEmpty
    private String supplierName;
    @NotEmpty
    private Date purchaseStartTime;
    private Date purchaseEndTime;

    @NotEmpty
    private Map<String,Integer> parts;

    @Status
    @ApiModelProperty("采购状态为0（默认未完成）或1（已完成）或2（已废弃）")
    private short status;
}
